* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: white;
}

/* 顶部导航栏 */
header {
    /* position: fixed; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
}

.logo h1 {
    color: white;
    font-size: 48px;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.login-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.signup-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* 左侧导航栏 */
.sidebar {
    position: absolute; /* 改为 fixed 使导航栏固定 */
    left: 0;
    top: 100px;
    width: 200px;
    padding: 20px;
    z-index: 100; /* 确保导航栏始终在上层 */
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 10px; /* 添加项目间距 */
    border-radius: 5px; /* 添加圆角 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.nav-links li a {
    display: block; /* 让整个区域可点击 */
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer; /* 添加鼠标手型 */
}

.nav-links li:hover {
    background-color: #ff0000;
    transform: translateX(10px); /* 添加悬浮时的位移效果 */
}

.nav-links .active {
    background-color: #ff0000;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth; /* 添加平滑滚动 */
}

/* 调整各节的位置，防止被固定导航栏遮挡 */
section {
    scroll-margin-top: 20px; /* 确保滚动到正确位置 */
}

/* 大屏文字展示 */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 50px 0 250px;
    position: relative;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.download-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 50px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* 通用部分样式 */
.section {
    padding:60px 50px 30px 50px;
    background-color: #fff;
}

.section-title {
    font-size: 48px;
    text-align: center;
    color: #000;
    margin-bottom: 60px;
}

/* 游戏展示 */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.game-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.game-image {
    flex: 0 0 400px;
}

.game-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.game-content {
    flex: 1;
}

.game-content h3 {
    font-size: 36px;
    color: #000;
    margin-bottom: 20px;
}

.game-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.free-download {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 软件= */
.software-container {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.software-image {
    flex: 0 0 45%;
    position: relative;
    box-shadow: 0 0 10px #968a8a;
}

.software-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background-color: #f0f0f0;
    z-index: -1;
}

.software-image img {
    width: 100%;
    height: auto;
    position: relative;
}

.software-content {
    flex: 0 0 55%;
    text-align: center;
}

.software-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.read-more {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .game-item {
        flex-direction: column;
    }
    
    .game-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .software-container {
        flex-direction: column;
    }
    
    .software-image,
    .software-content {
        flex: 0 0 100%;
    }
}
/* 关于我们 */
.about-game {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    margin-bottom: 30px;
}

.video-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn img {
    width: 30px;
    height: 30px;
}

.about-text {
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 贡献者*/
.testimonial-container {
    text-align: center;
    padding: 40px 0;
}

.testimonial-images {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.side-image {
    border: 1px solid #968a8a;
    width: 150px;
    border-radius: 10px;
    opacity: 0.7;
}

.main-image {
    border: 1px solid #968a8a;
    width: 250px;
    border-radius: 10px;
}

.testimonial-slider h3 {
    font-size: 24px;
    color: #000;
    margin-bottom: 15px;
}

.testimonial-slider p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 联系我们 */
#contact{
    padding-top: 0px;
}
.contact-form {
    background-color: #363131;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 50px 20px 50px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    background: #fff;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}

.send-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    cursor: pointer;
    font-size: 16px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.newsletter {
    text-align: center;
    margin-bottom: 60px;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.subscribe-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px;
    border: none;
}

.subscribe-btn {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 0 40px;
    cursor: pointer;
}
.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links img {
    width: 30px;
    height: 30px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    line-height: 2;
}
.contact-info p{
    color: #666;
}
/* .contact-info i {
    margin-right: 10px;
    color: #ff0000;
} */

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}
.email-icon,.call-icon,.loc-icon{
    width: 15px;
    height: 10px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}